﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BestLifePOS_Core.Data.Fascade;
using BestLifePOS_Core.DomainObjects;

namespace BestLifePOS_PresentationLayer
{
    public partial class frmshiftchangemenu : Form
    {
        #region Globel variables
        List<User> GvUserdetailList = new List<User>();
        string Gvterminalid = "";
        string Gvbranchname = "";
        #endregion

        public frmshiftchangemenu(List<User> userdetails,string terminal,string branchid)
        {
            InitializeComponent();

            #region Assign values To Gvs
            GvUserdetailList = userdetails;
            Gvterminalid = terminal;
            Gvbranchname = branchid;
            #endregion
        }

        private void frmshiftchangemenu_Load(object sender, EventArgs e)
        {
            #region Set Middle
            int width = Screen.PrimaryScreen.Bounds.Width;
            int height = Screen.PrimaryScreen.Bounds.Height;
            this.Size = new Size(width, height);
            //with additional settings of the form:
            this.WindowState = FormWindowState.Maximized;
            //this.FormBorderStyle = FormBorderStyle.None;
            int nowwidth = this.groupBox1.Width;
            int nowheight = this.groupBox1.Height;

            int x = ((width / 2) - (nowwidth / 2));
            int y = ((height / 2) - (nowheight / 2)); ;
            groupBox1.Location = new Point(x, y);
            #endregion
        }

        private void btnnormallog_Click(object sender, EventArgs e)
        {

            if (MessageBox.Show("Normal Login", "Warning", MessageBoxButtons.OKCancel) == DialogResult.OK)
            {
                frmcustomertype frmcustypr = new frmcustomertype(GvUserdetailList, Gvterminalid, Gvbranchname);
                frmcustypr.Show();
            }
            else
            {
                
            }
        }

        private void btnshiftchange_Click(object sender, EventArgs e)
        {

            if (MessageBox.Show("Shit Change", "Warning", MessageBoxButtons.OKCancel) == DialogResult.OK)
            {
                
            }
            else
            {
                 
            }
        }
    }
}
